﻿<%@ Page Title="" Language="C#" MasterPageFile="~/ASP/MasterPages/MainMasterPage.Master" AutoEventWireup="true" CodeBehind="ViewPersons.aspx.cs" Inherits="BulkSMSapplication.ASP.MenuItems.ViewPersons" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MasterContentPlaceHolder" runat="server">
    <div style="height: 392px">
        <link href="../../CSS/ViewPersonsStyleSheet.css" rel="stylesheet" />
        <asp:GridView ID="GridViewPersons" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource" Height="354px" Width="547px" style="margin-left: 20px; margin-top: 20px; margin-right: 20px;">
            <Columns>
                <asp:BoundField DataField="Person_ID" HeaderText="Person_ID" InsertVisible="False" ReadOnly="True" SortExpression="Person_ID" />
                <asp:BoundField DataField="First_name" HeaderText="First_name" SortExpression="First_name" />
                <asp:BoundField DataField="Last_name" HeaderText="Last_name" SortExpression="Last_name" />
                <asp:BoundField DataField="Email" HeaderText="Email" SortExpression="Email" />
                <asp:BoundField DataField="PhoneNumber" HeaderText="PhoneNumber" SortExpression="PhoneNumber" />
                <asp:BoundField DataField="Address" HeaderText="Address" SortExpression="Address" />
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:BulkSMSdatabaseConnectionString %>" SelectCommand="SELECT * FROM [Person]"></asp:SqlDataSource>
    </div>
&nbsp;<asp:DropDownList ID="DropDownListPersons" runat="server" style="margin-left: 18px">
            <asp:ListItem Value="First_name">First name</asp:ListItem>
            <asp:ListItem Value="Last_name">Last name</asp:ListItem>
            <asp:ListItem>Email</asp:ListItem>
            <asp:ListItem Value="PhoneNumber">Phone number</asp:ListItem>
            <asp:ListItem>Address</asp:ListItem>
        </asp:DropDownList>
        <asp:TextBox ID="TextBoxSearch" runat="server" Width="170px"></asp:TextBox>
        <asp:Button ID="ButtonFilter" runat="server" OnClick="Button1_Click" Text="Filter" CssClass="filterButton" />
    &nbsp;
</asp:Content>
